package com.bflow.api.bo;

import com.bflow.api.bo.ext.BflowUserBo;

import java.io.Serializable;
import java.util.List;

/**
 * 功能：BflowRunRecord 流程记录-BO(business object)业务对象
 * 作者：haowen
 * 日期：2018-12-13
 */
public class BflowRunRecordBo implements Serializable {

    private static final long serialVersionUID = -622229976534939493L;
	
    /**
     * 记录ID
	 */
	private String id;

	private String instanceId;
    /**
     * 任务ID
	 */
	private String taskId;

    /**
     * 上个活动ID
	 */
	private String lastActId;

    /**
     * 当前活动ID
	 */
	private String curActId;

    /**
     * 操作者ID
	 */
	private String createUid;

    /**
     * 操作姓名
	 */
	private String createUname;

    /**
     * 创建时间
	 */
	private java.util.Date createTime;

    /**
     * 结论
	 */
	private String flag;

    /**
     * 备注
	 */
	private String remarks;

    /**
     * 扩展JSON
	 */
	private String extJson;

    /**
     * 删除标记：0-已删除；1-有效；
	 */
	private String delFlag;

	/** 版本号 */
	private Integer version;


	//扩展
	/**
	 * 任务ID集合
	 */
	private List<String> taskIds;

	/**
	 * 当前活动名称
	 */
	private String curActName;

	public BflowRunRecordBo(){

	}
	public BflowRunRecordBo(String instanceId, String taskId,String curActId,String lastActId, BflowRunTaskAuditBo auditBo, Integer version){
		this.instanceId = instanceId;
		this.taskId=taskId;
		this.curActId=curActId;
		this.lastActId=lastActId;
		this.createUid=auditBo.getOperationUserId();
		this.createUname=auditBo.getOperationUserName();
		this.flag=auditBo.getRouteId();
		this.remarks=auditBo.getRemarks();
		this.extJson=auditBo.getExtJson();
		this.version=version;
	}

	public BflowRunRecordBo(BflowRunTaskAuditBo auditBo) {
		setRemarks(auditBo.getRemarks());
		setTaskId(auditBo.getTaskId());
		setExtJson(auditBo.getExtJson());
		setCreateUid(auditBo.getOperationUserId());
		setCreateUname(auditBo.getOperationUserName());
	}

	public BflowRunRecordBo(String id ){
		this.id = id;
	}

	public String getId() {
		return this.id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getInstanceId() {
		return this.instanceId;
	}
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}

	public String getTaskId() {
		return this.taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}

	public String getLastActId() {
		return this.lastActId;
	}
	public void setLastActId(String lastActId) {
		this.lastActId = lastActId;
	}

	public String getCurActId() {
		return this.curActId;
	}
	public void setCurActId(String curActId) {
		this.curActId = curActId;
	}

	public String getCreateUid() {
		return this.createUid;
	}
	public void setCreateUid(String createUid) {
		this.createUid = createUid;
	}

	public String getCreateUname() {
		return this.createUname;
	}
	public void setCreateUname(String createUname) {
		this.createUname = createUname;
	}

	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	public void setCreateTime(java.util.Date createTime) {
		this.createTime = createTime;
	}

	public String getFlag() {
		return this.flag;
	}
	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getRemarks() {
		return this.remarks;
	}
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getExtJson() {
		return this.extJson;
	}
	public void setExtJson(String extJson) {
		this.extJson = extJson;
	}

	public String getDelFlag() {
		return this.delFlag;
	}
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public Integer getVersion() {
	 return this.version;
	}
	public void setVersion(Integer version) {
	 this.version = version;
	}


	public List<String> getTaskIds() {
		return taskIds;
	}

	public void setTaskIds(List<String> taskIds) {
		this.taskIds = taskIds;
	}

	public String getCurActName() {
		return this.curActName;
	}
	public void setCurActName(String curActName) {
		this.curActName = curActName;
	}
}

